package com.CST.common;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

@Data
public class YsPage<E> {

    private Integer size = -1;

    private Integer num = 1;

    @JsonIgnore
    public Page<E> getPage() {
        return new Page<>(num, size);
    }
}
